'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
	async up(queryInterface, Sequelize) {
		/**
		 * Add seed commands here.
		 *
		 * Example:
		 * await queryInterface.bulkInsert('People', [{
		 *   name: 'John Doe',
		 *   isBetaMember: false
		 * }], {});
		*/

		return queryInterface.bulkInsert('app_user', [{
			username: 'Alice',
			password: '',
			create_time: new Date(),
			update_time: new Date()
		}, {
			username: 'Bob',
			password: '',
			create_time: new Date(),
			update_time: new Date()
		}]);
	},

	async down(queryInterface, Sequelize) {
		/**
		 * Add commands to revert seed here.
		 *
		 * Example:
		 * await queryInterface.bulkDelete('People', null, {});
		 */
		return queryInterface.bulkDelete('app_user', null, {});
	}
};
